<template>
  <div>
    <div style="display: flex;">
      <div :style="title">
        <div>一号位</div>
        <div>二号位</div>
        <div>三号位</div>
      </div>
      <div style="flex: 1;">
        <el-table :data="tableData" :show-header="false" style="width: 100%;" height="300" :header-cell-style="headerCellStyle" :cell-style="cellStyle">
          <el-table-column prop="number" align="center" label="序号" min-width="10%">
          </el-table-column>
          <el-table-column prop="title" :show-overflow-tooltip="true" align="center" label="运营名称" min-width="50%">
          </el-table-column>
          <el-table-column prop="pic" :show-overflow-tooltip="true" align="center" label="运营图片" min-width="30%">
            <template slot-scope="scope">
              <img :src="scope.row.pic" width="64" height="64">
            </template>
          </el-table-column>
          <el-table-column prop="status" :show-overflow-tooltip="true" align="center" label="状态" min-width="10%">
          </el-table-column>
        </el-table>
      </div>
    </div>
  </div>
</template>
<script>
  export default {
    name: "liveControllerOperatingPushScreen",
    components: {
    },
    props:{
      data:{
        type: Object,
        default:()=>{}
      }
    },
    data() {
      return {
        headerCellStyle:{
          'background-color': '#f1f1f1',
          'font-size':'12px',
          'color':'#000000'
        },
        cellStyle:{
          'font-size':'12px',
          'border-bottom':'0'
        },
        title:{
          'line-height': '95px',
          'width':'150px',
          'margin-left': '15px'
        },
        tableData:[],
      }
    },
    mounted: function () {
      this.parentData = this.data
      this.getData()
    },
    methods: {
      pushScreen(row){
        this.getData()

      },
      getData(){
        this.utils.request.liveRequest({
          url: '/api/v1/broadcast/liveOperate/push/'+this.parentData.id,
          method: 'get'
        }).then(result => {
          let data = result.data;
          if (data && data.code === '0') {
            this.tableData = data.data;
          }
        })
      }
    }
  }
</script>
<style scoped lang="scss">

</style>
